<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="./common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%java.util.Random r=new java.util.Random();  %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="javascript">
<!--
	function logout(){
		if(confirm('确定注销吗？')){
			window.location.target = "_top";
			window.parent.location.href = "./login.do?action=logout";
		}
	}
	
	function viewSchedule(){
		if("<c:out value='${isViewSchedule}'/>" == '1'){
			window.location.href = "./scheduleManage.do";
			parent.window.location.target = "main";
		}else{
			alert("无此权限查看！");
		}
		
	}
	
	function employeeLevel(){
		var url = "./employeeManage.do?action=viewEmployeeLevel&radom="+<%=r.nextInt(100)%>;
		var dlgParam = "dialogHeight:600px;dialogWidth:800px;dialogTop:140px;dialogLeft:180px;status:no;help:no;scrollbars:yes;";
		window.showModalDialog(url,"",dlgParam);
	}
-->
</script>
</head>
<body style="background-color:#D1DCEE;">
	<table class="table" height="60">
		<tr>
			<td height="60"><img src="./images/logo.bmp"></td>
			<td></td>
			<td valign="top" align="right" >
				<table class="table">
					<tr><td height="5"></td></tr>
					<tr>
						<td>
							<a href="#" hidefocus="true" style="color: #335C92;">培训和支持</a> <img src="./images/dot.bmp"> 
							<a href="./index.do?action=mainPage" target="main" hidefocus="true" style="color: #335C92;">主页</a> <img src="./images/dot.bmp"> 
							<a href="#" hidefocus="true" style="color: #335C92;">帮助</a> <img src="./images/dot.bmp"> 
							<a href="./login.do?action=logout" target="_top" hidefocus="true" style="color: #335C92;">注销</a>
						</td>
					</tr>
				</table>
			</td>
			<td valign="top" align="right" width="240"><img src="./images/leftlogo.bmp"></td>
		</tr>
	</table>
	<table class="table" height="25">
		<tr>
			<td class="a_white" align="left" height="25" width="185" background="./images/1.bmp" style="padding-top: 2px;">
				&nbsp;&nbsp;&nbsp;
				<img src="./images/top_login.gif" style="vertical-align: middle;">
				<a>登陆用户：${userName}</a>
			</td>
			<td></td>
			<td height="25" width="440" background="./images/2.bmp" style="padding-top: 2px;">
				<table class="a_white" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="color: #ffffff;">
					<tr>
						<td width="10"></td>
						<td>
							<img src="./images/top_level.gif" style="vertical-align: middle;">
							<a href="javascript:employeeLevel();" hidefocus="true">信用等级</a>
						</td>
						<td width="5"></td>
						<td>
						<c:choose>
							<c:when test="${isViewSchedule == 1}">
								<img src="./images/top_time.gif" style="vertical-align: middle;">
								<a href="./scheduleManage.do" target="main" hidefocus="true">日程安排</a>
							</c:when>
							<c:otherwise>
								<img src="./images/top_time.gif" style="vertical-align: middle;">
								<a href="javascript:alert('无此权限查看！');" target="main" hidefocus="true">日程安排</a>
							</c:otherwise>
						</c:choose>
						</td>
						<td width="10"></td>
						<td>
						<c:choose>
							<c:when test="${isViewAuditRemind == 1}">
								<img src="./images/top_wait.gif" style="vertical-align: middle;">
								<a href="./auditRemind.do" target="main" hidefocus="true">待办事项</a>
							</c:when>
							<c:otherwise>
								<img src="./images/top_wait.gif" style="vertical-align: middle;">
								<a href="javascript:alert('无此权限查看！');" target="main" hidefocus="true">待办事项</a>
							</c:otherwise>
						</c:choose>
						</td>
						<td width="10"></td>
						<td>
						<c:choose>
							<c:when test="${isViewInternalMailbox == 1}">
								<img src="./images/top_internal.gif" style="vertical-align: middle;">
								<a href="./internalMailbox.do" target="main" hidefocus="true">内部邮件</a>
							</c:when>
							<c:otherwise>
								<img src="./images/top_internal.gif" style="vertical-align: middle;">
								<a href="javascript:alert('无此权限查看！');" target="main" hidefocus="true">内部邮件</a>
							</c:otherwise>
						</c:choose>
						</td>
					</tr>
				</table>
			</td>
			<td></td>
			<td align="right" style="color: #999999;padding-top: 10px;">注册信息：雷达CRM试用版本<!-- 注册信息：上海飞域网络科技有限公司 -->&nbsp;&nbsp;</td>
		</tr>
	</table>
	<table class="table" height="3" background="./images/line.bmp">
		<tr><td style=""></td></tr>
	</table>
</body>
</html>